DX11 SET STENCIL READ MASK
Sets a stencil mask that is bitwise AND:ed together with the stencil value read from the depth/stencil buffer during stencil tests.
This allows you to ensure that only certain stencil bits are read by shader techniques using this depth stencil state.
Take note that the stencil value is an 8-bit value (a BYTE), this the mask is as well.
DX11 SET STENCIL READ MASK depthStencilState, readMask
depthStencilState
Dword
The depth stencil state to set the stencil read mask for.
readMask
Byte
The stencil read mask to set for the given depth stencil state. This mask is bitwise AND:ed together with any value read from the stencil buffer when using this depth stencil state.
This function does not return a value.
DEPTHSTENCILSTATE Functions Menu
DX11 Function Categories